
#ifndef COMMAND_H_
#define COMMAND_H_

#include "string.h"
#include "serial_port_package.h"

#define COMMAND_MAXIMUM_PAYLOAD_SIZE 360

class Command
{
  public:
    Command(void);
    Command(int id);
    Command(int id, int value);
    Command(int id, float value);
    Command(int id, bool value);
    Command(SerialPortPackage serial_port_package);
  
    int id;
    String<COMMAND_MAXIMUM_PAYLOAD_SIZE> payload;
  
    float getFloat(void) const;
    void setFloat(float value);
    int getInt(void) const;
    void setInt(int value);
    bool getBool(void) const;
    void setBool(bool value);
};


#endif /* COMMAND_H_ */

